﻿@ModelType IEnumerable(Of Soldata.Azox.Models.NewsItem)

@If Model.Any Then
    @<ul class="unstyled">
        @For Each item In Model
        Dim currentItem = item
            @<li>
                <span class="label">@Html.DisplayFor(Function(modelItem) currentItem.PublishDate)</span>

                @Html.ActionLink(currentItem.Title, "details", New With {.id = currentItem.Id})
            </li>
    Next
    </ul>
Else
    @<div class="alert">
        @ViewBag.Message
    </div>
End If
